<?php

class My_Application_Cache extends Zend_Application_Resource_ResourceAbstract {

    public function init() {
        $options = $this->getOptions();
        $cache = Zend_Cache::factory(
                        $options['frontEnd'],
                        $options['backEnd'],
                        $options['frontEndOptions'],
                        $options['backEndOptions']);
        Zend_Registry::set('cache', $cache);
        return $cache;
    }

}
